package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.TargetAndBackMonkey;
import com.example.demo.entity.TargetAndBackMonkey2;
import com.example.demo.repository.TargetAndBackMonkeyRepository2;
@Service
public class TargetAndBackMonkeyService2 extends BaseService<TargetAndBackMonkey2, Integer>{

	@Autowired
	private TargetAndBackMonkeyRepository2 r2;
	
	public List<TargetAndBackMonkey2> findByTargetAndBackMonkey(TargetAndBackMonkey sale1) {
		return r2.findByTarget(sale1);
	}

	public List<TargetAndBackMonkey2> findByMonthAndYears(Integer month, Integer years) {
		// TODO Auto-generated method stub
		return r2.findByMonthAndYears(month,years);
	}

	public List<TargetAndBackMonkey2> findBytargetId(Integer id) {
		// TODO Auto-generated method stub
		return r2.findBytargetId(id);
	}

}
